package com.thoughtworks;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) {
	    String card = null;
        System.out.println("Enter the card number ");
        BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
        try {
            card = br.readLine();
        } catch (IOException e) {
            System.out.println(e.getMessage());

        }
        Main ob= new Main();
        Boolean result=ob.cardNumber(card);
        System.out.println(result);

    }

    public boolean cardNumber(String card){
        boolean res=false;
        if((card.length()>13)&&(card.length()<18))
            if(card.matches("\\d+"))
                res= true;
        return res;

    }
}
